<template>
  <div>
    <Header />
    <router-view></router-view>
    <Footer v-show="FooterIsShow" />
  </div>
</template>

<script>
import Header from "@comp/Header";
import Footer from "@comp/Footer";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  computed: {
    FooterIsShow() {
      // 方法1：判断当前路由名称：
      // return this.$route.name !== "Login" && this.$route.name !== "Register";
      // 方法2：判断路由元信息：
      return !this.$route.meta.isHidden;
    },
  },
};
</script>

<style>
</style>
